libxl: introduce libxl_cpupool_cpu{add, remove}_cpumap()
authorDario Faggioli <dario.faggioli@citrix.com>
Fri, 13 Mar 2015 11:09:24 +0000 (12:09 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 18 Mar 2015 12:51:04 +0000 (12:51 +0000)
commit7f586dbb483962835b6cb7d6918dcfca95c5437d
tree2df738777d8edff845edad5ebe7242b1d36c386a
parent9185dec0a42e0f5c297e721e5b6073d3ac2850fe
libxl: introduce libxl_cpupool_cpu{add, remove}_cpumap()

To add (removes) to (from) a cpupool all the pCPUs corresponding
to the bits that are set in the passed bitmap.

This is convenient and useful in order to implement, in xl,
the possibility of specifying ranges of pCPUs to be added
(removed) to (from) a cpupool, in the relevant commands.

While there, convert libxl_cpupool_cpu{add,remove} to use the
appropriate logging macro (LOGE()).

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
Cc: Juergen Gross <JGross@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl.h